import { reqShowTencent} from "@/api";

const state={
    SecretId:'',
    SecretKey:'',
    Bucket:'',
    Region:'',
    Key:'',
    StorageClass:''
}
const mutations={
    SHOWTENCENT(state,tencent){
      state.SecretId=tencent[0]
        state.SecretKey=tencent[1]
        state.Bucket=tencent[2]
        state.Region=tencent[3]
        state.Key=tencent[4]
        state.StorageClass=tencent[5]
    }
}
const actions={
    async showTencent({commit}){
       const result=await reqShowTencent()
        if (result.code==10000){
            commit('SHOWTENCENT',result.data)
        }
    }
}
const getters= {

}

export default {
    state,
    mutations,
    actions,
    getters
}
